package com.qihoo360.mobilesafe.opti.powerctl.ui.widget;

import android.graphics.Matrix;
import android.util.Log;
import android.view.animation.Animation;
import android.view.animation.Transformation;

public class RotateAnimation extends Animation {

	private float b = 0.0F;
	private float c = 0.0F;
	private float d;
	private float e;
	private boolean f = true;

	public RotateAnimation(RotatePointerAniView paramRotatePointerAniView,
			float paramFloat1, float paramFloat2) {
		b = paramFloat1;
		c = paramFloat2;
	}
	
	  public void a(int paramInt1, int paramInt2)
	  {
	    float f1 = paramInt1;
	    this.d = f1;
	    float f2 = paramInt2;
	    this.e = f2;
	  }

	@Override
	protected void applyTransformation(float paramFloat, Transformation t) {
		Log.v("fan","applyTransforamtion:" + paramFloat);
		float f1 = this.d;
		float f2 = this.e;
		float f3 = this.d;
		float f4 = (f2 - f3) * paramFloat;
		float f5 = f1 + f4;
		Matrix localMatrix = t.getMatrix();
		float f6 = this.b;
		float f7 = this.c;
		Log.v("fan","applyTransformation:" + f5);
		localMatrix.setRotate(f5, f6, f7);
	}

}
